#ifndef MYFIRST_H
#define MYFIRST_H

#include "myfirst_global.h"
//#include "rectangle.h"
//#include "square.h"
//#include "triangle.h"
#include <QVector>
#include <QList>
#include <QDebug>
#include <QFile>
#include <QDir>
#include <QTextStream>
#include <QString>
#include <QList>
#include <cmath>


class MYFIRSTSHARED_EXPORT Figure
{
    public:

     Figure (){}
     virtual ~Figure(){}
     virtual float perimetr()=0;
     virtual float ploshadb()= 0;
     virtual QString print_name() = 0;
     virtual QList<QString> print_inf()=0;
     virtual void chengeKoordinat(float firstX,float secondX)=0;
};



class MYFIRSTSHARED_EXPORT Conteiner{
private:
    QVector<Figure*>mass;
public:
    Conteiner(){}
    ~Conteiner();
    int size();
    void pushFig(Figure*a);
    void removeFig(int i);
    void zapisb(QString name_txt);
    void readFromFile(QString name_txt);
    void ChengeXY(int i,float firstX,float secondX);
    Figure *operator[](int i);
};

#endif // MYFIRST_H
